|
|
|
|
|
|
|
Figure 14.10
The first step in creating properties, methods,
and events for your control is to add procedures
for the commonly used member names. |
|
|
|
|
|
|
|
|
After you add the Text property to the Selected Names list, click the Next button to move to the next page of the wizard. |
|
|
|
|
|
|
|
|
After selecting the predefined properties, methods, and events for your control, you move to the page of the wizard where you can enter the new custom items for your control. The Create Custom Interface Members dialog box contains a list of all the custom members that will be created for your control (see Figure 14.11). |
|
|
|
|
|
|
|
|
Figure 14.11
The wizard also provides a dialog box to enter member
names not listed in the Select Interface Members dialog box. |
|
|
|
|
|
|
|
|
If you have previously defined public properties or other members, they appear in this list when you first access the dialog box. From this dialog box, you can add new members, and edit or delete existing ones. To add a new member, click the Newbutton of the wizard to open the Add Custom Member dialog box. In this dialog box, you specify the name of the member and its type. Create the CharAccept property by typing CharAccept in the Name field, and click OK. After you return to the Add Custom Member dialog box, create the UserError event by following the same procedure. Finally, click the Next button to move on. |
|
|
|
|
|